package com.ruix.app.service;

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;

import com.ruix.app.RuiApplication;
import com.ruix.app.util.LogUitl;

/**
 * Created by hadexs on 2017/5/26.
 */

public class PlayServiceConnection implements ServiceConnection{

    @Override
    public void onServiceConnected(ComponentName name, IBinder service) {
        final MusicService playService = ((MusicService.MusicBinder) service).getService();
        RuiApplication.getInstance().setMusicService(playService);

    }

    @Override
    public void onServiceDisconnected(ComponentName name) {

    }
}
